<template>
  <div id="Box"></div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'

const initws = () => {
  const ws = new WebSocket('wss://stream.aisstream.io/v0/stream')

  ws.onmessage = () => {}

  ws.onopen = () => {
    console.log('connected')
  }
}

onMounted(initws)
</script>

<style scoped lang="less">
#Box {
}
</style>
